package org.qdao;

import org.qdao.annotation.Column.DBColumnType;
/**
 * 
 * @author 譚元吉
 * @since 2010/02/06 11:00:50
 */
public class TableDescriptor {

	public String name;

	public String description;

	public ColumnDescription[] columns;

	public String[] primaryKeys;
	
	public ColumnDescription[] pks;

/*	public FkDescription foreignKeys;

	public HashMap<String, String[]> indexs;

	public HashMap<String, String[]> uniqueIndexs;*/

	public static class ColumnDescription {

		public String name;

		public String description;

		public String javaField;
		
		public String defaultValue;

		public DBColumnType type;

		public int length;

		public int decimal;

		public boolean nullable;
		
		public boolean primaryKey;
		
		public boolean autoIncrement;
	}

/*	public static class FkDescription {
		public String foreignKeys; // FOREIGN KEY 

		public String references; //REFERENCES
	}*/
}
